package com.liy.framework.common.exception;

public class ApiParamValidatorException extends Exception
{
    private static final long serialVersionUID = 1L;
    private String code;
    private String message;
    
    public ApiParamValidatorException() {
    }
    
    public ApiParamValidatorException(final String code, final String message) {
        this.code = code;
        this.message = message;
    }
    
    public ApiParamValidatorException(final Throwable cause) {
        super(cause);
    }
    
    public ApiParamValidatorException(final String message, final Throwable cause) {
        super(message, cause);
    }
    
    public String getCode() {
        return this.code;
    }
    
    public void setCode(final String code) {
        this.code = code;
    }
    
    @Override
    public String getMessage() {
        return this.message;
    }
    
    public void setMessage(final String message) {
        this.message = message;
    }
}
